package com.zuikaku.nettychat.service;

import com.zuikaku.nettychat.pojo.Chat;
import com.zuikaku.nettychat.vo.ChatVO;

import java.util.List;

public interface ChatService {
    List<Chat> selectAll();

    List<ChatVO> getChatVOByUserId(Integer userId);

    ChatVO selectChatVOByBothId(int currentUserId, int opponentId);

    ChatVO selectChatVOByPKForSender(Integer chatId);

    Chat selectChatByPK(int chatId);

    int updateChatByChat(Chat chat);

    int addChatByChat(Chat newChat);
}
